﻿using Ongoal.Quotation.Common;
using Ongoal.Quotation.Service.Model.Sys;
using Ongoal.Quotation.Service.ViewModel;

namespace Ongoal.Quotation.Service.Interface
{
    /// <summary>
    /// 代码相关接口
    /// </summary>
    public interface ICodeService : IServiceBase
    {
        /// <summary>
        /// 根据代码获取代码项列表
        /// </summary>
        /// <param name="codeStr"></param>
        /// <returns></returns>
        Dictionary<string, List<dynamic>> GetCode(string codeStr);

  
        /// <summary>
        /// 添加代码项
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        void AddCodeItem(V_CodeItem model);


        /// <summary>
        /// 添加代码项
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        void UpdateCodeItem(V_CodeItem model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="model"></param>

        void DeleteCodeItem(V_CodeItem model);

        #region 外键
        /// <summary>
        /// 获取外键信息
        /// </summary>
        /// <param name="ModelList">外键参数集合</param>
        Dictionary<string, List<dynamic>> GetCode_Foreign(List<T_Sys_Interfacesettings> ModelList);
        #endregion

    }
}
